package pdfsetter.core.util;

import java.util.RandomAccess;

/**
 * RandomAccessIterable, as the name suggests, combine functionality of {@link Iterable} with random access, i.e. getting objects from random positions. To
 * iterate through such a set we need also to know the size of the set, that is why we provide such a method.
 * 
 * @author Andrzej Dorobisz
 */
public interface RandomAccessIterable<T> extends RandomAccess, Iterable<T> {
    T get(int index);

    int size();
}
